<template>
    <div class="video-list">
        <div class="title row">
            <span class="icon"></span>
            <span>推荐视频</span>
        </div>
        <div class="body row">
            <div v-for="(video, index) in videos" :key="index" class="item">
                <VideoItem :video="video" />
            </div>
        </div>
    </div>
</template>

<script>
import VideoItem from "../video-item/index";
export default {
    components: {
        VideoItem
    },
    props: {
        videos: {
            type: Array
        }
    },
    data() {
        return {};
    },

    methods: {}
};
</script>


<style lang="less" scoped>
.video-list {
    .title {
        padding: 0 30px 30px 30px;
        height: 30px;
        line-height: 30px;

        .icon {
            display: inline-block;
            width: 10px;
            height: 100%;
            background: #f70;
            margin-right: 12px;
        }
    }

    .body {
        padding: 0 15px 0 15px;
        flex-wrap: wrap;

        .item {
            margin: 0 15px 30px 15px;
            flex: 0 0 auto;
            width: 330px;
        }
    }
}
</style>